home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 1
/
Gekikoh Dennoh Club Vol. 1 (Japan).7z
/
Gekikoh Dennoh Club Vol. 1 (Japan) (Track 1).bin
/
kowin
/
archive
/
sys
/
kowin14d.lzh
/
smpl
/
wlib
/
hello.c
next >
Wrap
C/C++ Source or Header
|
1995-02-11
|
625b
|
34 lines
/* wlib を使った基本ウィンドウオープン */
/* ありがち */
#include <wlib.h>
EventExec( wp, info )
WindowID wp;
EventInfo *info;
{
DrawBuf dbuf[2];
switch( info->option ){
case EventOpen:
WindowRedraw( wp );
return TRUE;
case EventClose:
WindowClose( wp );
WindowConnectionClose();
return TRUE;
case EventRedraw:
DrawSetClear( dbuf, ColorGray );
DrawSetSymbol( dbuf+1, 10, 10, "HELLO!", AttrDefault, 24 );
WindowDraw( wp, dbuf, 2 );
return TRUE;
}
return FALSE;
}
WindowMain()
{
WindowTitleOpen( 10, 10, 100, 100, NULL, "hello", Close|Push,
EventExec );
}